package com.ucode.crm.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ucode.crm.mode.FollowupTeamUser;

public interface FollowupTeamUserMapper {
    
    public int save(FollowupTeamUser followupTeamUser);

    public int batchSave(List<FollowupTeamUser> list);
    
    public int updatePower(@Param("id")Long id,@Param("power")Integer power);
    
    public int delete(Long id);
    
    public int batchDelete(List<Long> ids);
    
    public FollowupTeamUser findById(Long id);
    
    public List<FollowupTeamUser> findByIds(List<Long> ids);
    
    public FollowupTeamUser find(@Param("targetId")Long targetId,@Param("targetType")Integer targetType,@Param("userId")Long userId);
    
    public List<FollowupTeamUser> findList(@Param("targetId")Long targetId,@Param("targetType")Integer targetType);
    
}
